package io.bloom.cloud.config.server;

import java.util.Date;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.config.server.EnableConfigServer;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@EnableConfigServer
@SpringBootApplication
public class Application {

	@RequestMapping("/")
	@ResponseBody
	public String index(){
		return "ConfigServer @"+new Date();
	}

	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}
}
